﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PostsBox.ascx.cs" Inherits="Skecthial.UI.Controls.PostsBox" %>
<%@ Register TagPrefix="same" Namespace="Sketchial.UIProcess.CustomControls" Assembly="Sketchial.UIProcess" %>
<div id="eventHeaderWrapper" style="margin-top: 5px; margin-bottom: 5px;">
    <h2 style="margin: 0px; padding: 0px; font-weight: normal; font-family: Arial Sans-Serif;
        font-size: medium;"><div id="breakingTitle">New Events</div></h2>
</div>
<hr style="width: 100%" />
<div id="breakingNews" style="width: 100%;">
    <asp:Repeater ID="rptPosts" runat="server">
        <HeaderTemplate></HeaderTemplate>
        <ItemTemplate>
            <div id="postContetWrapper" class="pbox" style="display: block; width: 100%; height: 150px;">
                <div id="posterImage" style="width: 20%; float: left;">
                    <img alt="Poster Profile" id="UserImage" runat="server" src="" />
                </div>
                <div id="postContent" style="width: 80%;">
                    <%# Eval("PostContent") %>
                </div>
                <div style="margin-top: 25px; text-align: right;">
                    posted by <i>
                        <asp:Label ID="UserName" runat="server" Text='<%# Eval("User") %>'></asp:Label>
                    </i>
                </div>
            </div>
        </ItemTemplate>
        <FooterTemplate></FooterTemplate>
    </asp:Repeater>
</div>
